<!-- 充值记录 -->
<template>
    <div class="page_record page_recharge_record">
        <Record></Record>

    </div>
</template>

<script setup lang='ts'>
import { onUnmounted } from "vue"


import H5Websocket from "@/net/Net1";
import { NetPacket } from "@/netBase/NetPacket";
// import { MessageEvent2 } from "@/net/MessageEvent2";
// import { NetMsgType } from "@/netBase/NetMsgType";


import Record from "@/components/Record.vue";





// const wayMap: any = ref({})






// 支付方式
const getPays = () => {
    const query = NetPacket.req_get_shop_info()
    H5Websocket.sendMessageHandler(query);
}
// const waysHandle = (rs: any) => {
//     rs.rechargelist_by_paymenttype.forEach((item: any) => {
//         wayMap[item.paymenttype] = item.payname
//     })
// }
getPays()

// 回执监听
// MessageEvent2.addMsgEvent(
//     NetMsgType.msgType.msg_notify_get_recharge_record_list,
//     resultHandle,
// );

// MessageEvent2.addMsgEvent(
//     NetMsgType.msgType.msg_notify_req_get_shop_info,
//     waysHandle,
// );

onUnmounted(() => {
    // 取消监听
    // MessageEvent2.removeMsgEvent(NetMsgType.msgType.msg_notify_get_recharge_record_list, null);
    // MessageEvent2.removeMsgEvent(NetMsgType.msgType.msg_notify_req_get_shop_info, null);
});

</script>

<style lang="scss" scopd></style>